package com.many.common;

/**
 * @ClassName Thread
 * @Description TODD
 * @Author James
 * @Date 2022/7/28
 * @Version 1.0
 **/
public class Threads extends Thread{

    @Override
    public void run() {
        System.out.println("创建线程的方式1");
        while(true);
    }


     public static void main(String[]args) {
        //实例化线程对象
         Threads t = new Threads();

    }

}
